package com.jiyun.pojo.chat;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class ChatMessage {
    //id
    private Integer id;
    //发送者id
    private String fromUserId;
    //接收者id
    private String toUserId;
    //消息
    private String message;
    //发送者头像
    private String fromUserPicture;
    //接收者头像
    private String toUserPicture;
    //发送时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;
}
